package com.km.team.phsystem.beans.pojo;

import java.io.Serializable;

public class TimeSlotPhConfig implements Serializable {
    private Integer id;

    private Integer systemBusitypeId;

    private String systemBusitypeType;

    private Integer acceptNo;

    private String startTime;

    private String endTime;

    private Boolean isEnable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSystemBusitypeId() {
        return systemBusitypeId;
    }

    public void setSystemBusitypeId(Integer systemBusitypeId) {
        this.systemBusitypeId = systemBusitypeId;
    }

    public String getSystemBusitypeType() {
        return systemBusitypeType;
    }

    public void setSystemBusitypeType(String systemBusitypeType) {
        this.systemBusitypeType = systemBusitypeType == null ? null : systemBusitypeType.trim();
    }

    public Integer getAcceptNo() {
        return acceptNo;
    }

    public void setAcceptNo(Integer acceptNo) {
        this.acceptNo = acceptNo;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime == null ? null : startTime.trim();
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime == null ? null : endTime.trim();
    }

    public Boolean getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Boolean isEnable) {
        this.isEnable = isEnable;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TimeSlotPhConfig other = (TimeSlotPhConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSystemBusitypeId() == null ? other.getSystemBusitypeId() == null : this.getSystemBusitypeId().equals(other.getSystemBusitypeId()))
            && (this.getSystemBusitypeType() == null ? other.getSystemBusitypeType() == null : this.getSystemBusitypeType().equals(other.getSystemBusitypeType()))
            && (this.getAcceptNo() == null ? other.getAcceptNo() == null : this.getAcceptNo().equals(other.getAcceptNo()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getIsEnable() == null ? other.getIsEnable() == null : this.getIsEnable().equals(other.getIsEnable()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSystemBusitypeId() == null) ? 0 : getSystemBusitypeId().hashCode());
        result = prime * result + ((getSystemBusitypeType() == null) ? 0 : getSystemBusitypeType().hashCode());
        result = prime * result + ((getAcceptNo() == null) ? 0 : getAcceptNo().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getIsEnable() == null) ? 0 : getIsEnable().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", systemBusitypeId=").append(systemBusitypeId);
        sb.append(", systemBusitypeType=").append(systemBusitypeType);
        sb.append(", acceptNo=").append(acceptNo);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", isEnable=").append(isEnable);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}